<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>复古胶片相机 - 礼物愿望详情 - 心愿社交</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        /* 基础样式 */
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f9fafb;
            color: #111827;
            line-height: 1.6;
        }
        
        /* 导航栏 */
        .navbar {
            background-color: white;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            padding: 0.75rem 0;
        }
        
        .logo {
            font-weight: 700;
            font-size: 1.5rem;
            color: #ec4899;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }
        
        .search-bar {
            max-width: 400px;
            width: 100%;
        }
        
        .nav-link {
            color: #4b5563;
            font-weight: 500;
            transition: color 0.2s;
            padding: 0.5rem 1rem;
        }
        
        .nav-link:hover, .nav-link.active {
            color: #ec4899;
        }
        
        /* 主内容区 */
        .main-container {
            padding: 2rem 0;
        }
        
        /* 页面标题 */
        .page-header {
            margin-bottom: 2rem;
        }
        
        .page-title {
            font-size: 2rem;
            font-weight: 700;
            color: #111827;
            margin-bottom: 0.5rem;
        }
        
        .page-path {
            color: #6b7280;
            font-size: 0.9rem;
        }
        
        .page-path a {
            color: #6b7280;
            text-decoration: none;
        }
        
        .page-path a:hover {
            color: #ec4899;
            text-decoration: underline;
        }
        
        /* 礼物详情卡片 */
        .gift-detail-card {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            overflow: hidden;
            margin-bottom: 2rem;
        }
        
        /* 图片展示区 */
        .gift-image-container {
            position: relative;
            background-color: #f3f4f6;
        }
        
        .main-image {
            width: 100%;
            height: auto;
            object-fit: cover;
            display: block;
        }
        
        .thumbnail-container {
            display: flex;
            gap: 8px;
            padding: 1rem;
            overflow-x: auto;
            scrollbar-width: thin;
        }
        
        .thumbnail {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 6px;
            cursor: pointer;
            opacity: 0.7;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        
        .thumbnail:hover, .thumbnail.active {
            opacity: 1;
            border: 2px solid #ec4899;
        }
        
        .image-count {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background-color: rgba(0,0,0,0.6);
            color: white;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
        }
        
        /* 礼物信息区 */
        .gift-info {
            padding: 1.5rem;
        }
        
        .gift-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #111827;
            margin-bottom: 1rem;
            line-height: 1.4;
        }
        
        .gift-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
            color: #6b7280;
            font-size: 0.9rem;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .gift-price {
            display: inline-block;
            background-color: #f0fdf4;
            color: #166534;
            padding: 4px 12px;
            border-radius: 6px;
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
        }
        
        .gift-description {
            color: #4b5563;
            line-height: 1.8;
            margin-bottom: 1.5rem;
            font-size: 1.05rem;
        }
        
        .gift-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 2rem;
        }
        
        .gift-tag {
            background-color: #fce7f3;
            color: #ec4899;
            padding: 4px 12px;
            border-radius: 6px;
            font-size: 0.85rem;
        }
        
        /* 作者信息 */
        .author-info {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 1rem 1.5rem;
            border-top: 1px solid #f3f4f6;
            border-bottom: 1px solid #f3f4f6;
        }
        
        .author-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-details {
            flex: 1;
        }
        
        .author-name {
            font-weight: 600;
            color: #111827;
            text-decoration: none;
            font-size: 1.05rem;
        }
        
        .author-name:hover {
            color: #ec4899;
            text-decoration: underline;
        }
        
        .post-time {
            font-size: 0.85rem;
            color: #9ca3af;
        }
        
        .follow-btn {
            background-color: #f9fafb;
            border: 1px solid #e5e7eb;
            color: #4b5563;
            padding: 6px 16px;
            border-radius: 6px;
            font-size: 0.9rem;
            transition: all 0.2s;
        }
        
        .follow-btn:hover {
            background-color: #ec4899;
            color: white;
            border-color: #ec4899;
        }
        
        .follow-btn.following {
            background-color: #ec4899;
            color: white;
            border-color: #ec4899;
        }
        
        /* 操作按钮区 */
        .action-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .main-action-btn {
            flex: 1;
            min-width: 140px;
            padding: 10px 16px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s;
            border: none;
            cursor: pointer;
        }
        
        .primary-btn {
            background-color: #ec4899;
            color: white;
        }
        
        .primary-btn:hover {
            background-color: #db2777;
        }
        
        .secondary-btn {
            background-color: #f3f4f6;
            color: #4b5563;
        }
        
        .secondary-btn:hover {
            background-color: #e5e7eb;
        }
        
        .icon-action-btn {
            background-color: #f9fafb;
            border: 1px solid #e5e7eb;
            color: #6b7280;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .icon-action-btn:hover {
            border-color: #ec4899;
            color: #ec4899;
        }
        
        .icon-action-btn.liked {
            color: #ec4899;
        }
        
        .icon-action-btn.saved {
            color: #f59e0b;
        }
        
        /* 相关推荐 */
        .section-title {
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .section-title i {
            color: #ec4899;
        }
        
        .related-gifts {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-bottom: 3rem;
        }
        
        .related-gift-card {
            border-radius: 8px;
            overflow: hidden;
            background-color: white;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            transition: transform 0.2s;
        }
        
        .related-gift-card:hover {
            transform: translateY(-4px);
        }
        
        .related-gift-img {
            width: 100%;
            height: 140px;
            object-fit: cover;
        }
        
        .related-gift-info {
            padding: 0.75rem;
        }
        
        .related-gift-title {
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.4;
        }
        
        .related-gift-price {
            font-size: 0.85rem;
            color: #166534;
            font-weight: 500;
        }
        
        /* 评论区 */
        .comments-section {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            padding: 1.5rem;
            margin-bottom: 3rem;
        }
        
        .comments-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .comments-count {
            font-weight: 600;
            color: #6b7280;
        }
        
        .comments-sort {
            font-size: 0.9rem;
        }
        
        .comments-sort select {
            border: none;
            background: none;
            color: #ec4899;
            font-weight: 500;
            padding: 2px 4px;
            cursor: pointer;
        }
        
        /* 评论输入框 */
        .comment-input-container {
            display: flex;
            gap: 12px;
            margin-bottom: 2rem;
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .comment-input {
            flex: 1;
        }
        
        .comment-input textarea {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            resize: none;
            min-height: 100px;
            font-family: inherit;
            font-size: 0.95rem;
        }
        
        .comment-input textarea:focus {
            outline: none;
            border-color: #ec4899;
        }
        
        .comment-actions {
            display: flex;
            justify-content: flex-end;
            margin-top: 0.75rem;
            gap: 1rem;
        }
        
        .cancel-btn {
            background: none;
            border: none;
            color: #6b7280;
            padding: 6px 16px;
            cursor: pointer;
        }
        
        .post-btn {
            background-color: #ec4899;
            color: white;
            border: none;
            padding: 6px 16px;
            border-radius: 6px;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .post-btn:hover {
            background-color: #db2777;
        }
        
        .post-btn:disabled {
            background-color: #fecdd3;
            cursor: not-allowed;
        }
        
        /* 评论列表 */
        .comments-list {
            margin-bottom: 2rem;
        }
        
        .comment-item {
            display: flex;
            gap: 12px;
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid #f3f4f6;
        }
        
        .comment-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
        
        .comment-author-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .comment-content {
            flex: 1;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }
        
        .comment-author {
            font-weight: 600;
            font-size: 0.95rem;
        }
        
        .comment-time {
            font-size: 0.8rem;
            color: #9ca3af;
        }
        
        .comment-text {
            color: #4b5563;
            margin-bottom: 0.75rem;
            line-height: 1.6;
        }
        
        .comment-actions {
            display: flex;
            gap: 1.5rem;
            font-size: 0.85rem;
        }
        
        .comment-action {
            color: #6b7280;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .comment-action:hover {
            color: #ec4899;
        }
        
        .comment-action.liked {
            color: #ec4899;
        }
        
        /* 回复区域 */
        .replies-container {
            margin-left: 2rem;
            margin-top: 1rem;
        }
        
        .reply-item {
            display: flex;
            gap: 10px;
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #f3f4f6;
        }
        
        .reply-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
        
        .reply-author-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .reply-content {
            flex: 1;
        }
        
        .reply-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.3rem;
        }
        
        .reply-author {
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        .reply-time {
            font-size: 0.75rem;
            color: #9ca3af;
        }
        
        .reply-text {
            color: #4b5563;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
            line-height: 1.5;
        }
        
        .reply-text .reply-to {
            color: #ec4899;
            font-weight: 500;
        }
        
        .reply-actions {
            display: flex;
            gap: 1.5rem;
            font-size: 0.8rem;
        }
        
        .reply-action {
            color: #6b7280;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .reply-action:hover {
            color: #ec4899;
        }
        
        .reply-action.liked {
            color: #ec4899;
        }
        
        /* 回复输入框 */
        .reply-input-container {
            display: flex;
            gap: 10px;
            margin-top: 1rem;
            margin-bottom: 1rem;
        }
        
        .reply-input {
            flex: 1;
        }
        
        .reply-input textarea {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #e5e7eb;
            border-radius: 6px;
            resize: none;
            min-height: 80px;
            font-family: inherit;
            font-size: 0.9rem;
        }
        
        .reply-input textarea:focus {
            outline: none;
            border-color: #ec4899;
        }
        
        .reply-actions {
            display: flex;
            justify-content: flex-end;
            margin-top: 0.5rem;
            gap: 0.75rem;
        }
        
      
        
        /* 页脚 */
        footer {
            background-color: white;
            border-top: 1px solid #f3f4f6;
            padding: 2.5rem 0;
            margin-top: 3rem;
        }
        
        .footer-content {
            text-align: center;
            color: #6b7280;
        }
        
        .social-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
        }
        
        .social-link {
            color: #6b7280;
            font-size: 1.2rem;
            transition: color 0.2s;
        }
        
        .social-link:hover {
            color: #ec4899;
        }
        
        .footer-links {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin-bottom: 1rem;
            font-size: 0.9rem;
        }
        
        .footer-link {
            color: #6b7280;
            text-decoration: none;
        }
        
        .footer-link:hover {
            color: #ec4899;
            text-decoration: underline;
        }
        
        .copyright {
            font-size: 0.85rem;
        }
        
        /* 响应式调整 */
        @media (max-width: 992px) {
            .main-image {
                max-height: 500px;
                width: 100%;
                object-fit: cover;
            }
        }
        
        @media (max-width: 768px) {
            .search-bar {
                display: none;
            }
            
            .page-title {
                font-size: 1.5rem;
            }
            
            .gift-title {
                font-size: 1.3rem;
            }
            
            .main-action-btn {
                padding: 8px 12px;
                font-size: 0.9rem;
            }
            
            .related-gifts {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            }
            
            .replies-container {
                margin-left: 1rem;
            }
        }
        
        @media (max-width: 576px) {
            .action-buttons {
                gap: 0.75rem;
            }
            
            .main-action-btn {
                min-width: auto;
                flex: none;
                padding: 8px 10px;
                font-size: 0.85rem;
            }
            
            .main-action-btn span {
                display: none;
            }
            
            .main-action-btn i {
                margin-right: 0;
            }
            
            .related-gift-img {
                height: 120px;
            }
            
            .comment-actions {
                gap: 1rem;
            }
            
            .section-title {
                font-size: 1.2rem;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-light">
        <div class="container">
            <a href="#" class="logo">
                <i class="fas fa-gift"></i>
                <span>心愿社交</span>
            </a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent">
                <i class="fas fa-bars"></i>
            </button>
            
            <div class="collapse navbar-collapse" id="navbarContent">
                <div class="mx-auto search-bar">
                    <div class="input-group">
                        <input type="text" class="form-control rounded-pill" placeholder="搜索礼物愿望、标签或用户..." aria-label="Search">
                        <button class="btn btn-primary rounded-pill ms-2" type="button">
                            <i class="fas fa-search"></i>
                        </button>
                    </div>
                </div>
                
                <ul class="navbar-nav ms-auto gap-2">
                    <li class="nav-item">
                        <a href="#" class="nav-link"><i class="fas fa-home me-1"></i> 首页</a>
                    </li>
                    <li class="nav-item">
                        <a href="#" class="nav-link active"><i class="fas fa-list me-1"></i> 礼物愿望</a>
                    </li>
                    <li class="nav-item">
                        <a href="#" class="nav-link"><i class="fas fa-bell me-1"></i> 通知</a>
                    </li>
                    <li class="nav-item">
                        <a href="#" class="nav-link"><i class="fas fa-user me-1"></i> 我的</a>
                    </li>
                    <li class="nav-item">
                        <a href="#" class="btn btn-primary rounded-pill">
                            <i class="fas fa-plus me-1"></i> 发布愿望
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    
    <!-- 主内容区 -->
    <div class="container main-container">
        <!-- 页面路径导航 -->
        <div class="page-header">
            <div class="page-path">
                <a href="#">首页</a> &gt; <a href="#">礼物愿望</a> &gt; 复古胶片相机
            </div>
            <h1 class="page-title">礼物愿望详情</h1>
        </div>
        
        <div class="row">
            <!-- 左侧主内容 -->
            <div class="col-lg-8">
                <!-- 礼物详情卡片 -->
                <div class="gift-detail-card">
                    <!-- 图片展示区 -->
                    <div class="gift-image-container">
                        <img src="https://picsum.photos/1200/800?random=1" alt="复古胶片相机" class="main-image" id="mainImage">
                        <span class="image-count">4/4</span>
                        
                        <div class="thumbnail-container">
                            <img src="https://picsum.photos/1200/800?random=1" alt="复古相机正面" class="thumbnail active" data-img="https://picsum.photos/1200/800?random=1">
                            <img src="https://picsum.photos/1200/800?random=2" alt="复古相机侧面" class="thumbnail" data-img="https://picsum.photos/1200/800?random=2">
                            <img src="https://picsum.photos/1200/800?random=3" alt="复古相机顶部" class="thumbnail" data-img="https://picsum.photos/1200/800?random=3">
                            <img src="https://picsum.photos/1200/800?random=4" alt="复古相机镜头" class="thumbnail" data-img="https://picsum.photos/1200/800?random=4">
                        </div>
                    </div>
                    
                    <!-- 礼物信息区 -->
                    <div class="gift-info">
                        <h2 class="gift-title">想要一台复古胶片相机，记录生活中的美好瞬间</h2>
                        
                        <div class="gift-meta">
                            <div class="meta-item">
                                <i class="far fa-eye"></i>
                                <span>1.2k 浏览</span>
                            </div>
                            <div class="meta-item">
                                <i class="far fa-heart"></i>
                                <span>156 点赞</span>
                            </div>
                            <div class="meta-item">
                                <i class="far fa-comment"></i>
                                <span>32 评论</span>
                            </div>
                            <div class="meta-item">
                                <i class="far fa-bookmark"></i>
                                <span>48 收藏</span>
                            </div>
                        </div>
                        
                        <span class="gift-price">¥2000 - ¥3000</span>
                        
                        <p class="gift-description">
                            一直很喜欢胶片摄影的质感，那种独特的色彩和颗粒感是数字摄影无法替代的。希望能拥有一台属于自己的复古胶片相机，记录日常生活和旅行中的精彩瞬间。
                            <br><br>
                            预算在2000-3000元左右，富士或奥林巴斯的型号都可以考虑。最好是35mm画幅，支持手动对焦和曝光控制，方便我学习摄影基础知识。如果能附带一个标准镜头就更好了。
                            <br><br>
                            计划下个月生日时能收到这样一份礼物，非常期待能用它来记录生活中的美好时刻！
                        </p>
                        
                        <div class="gift-tags">
                            <span class="gift-tag">#摄影</span>
                            <span class="gift-tag">#复古</span>
                            <span class="gift-tag">#生日礼物</span>
                            <span class="gift-tag">#富士</span>
                            <span class="gift-tag">#奥林巴斯</span>
                        </div>
                        
                        <!-- 操作按钮区 -->
                        <div class="action-buttons">
                            <button class="main-action-btn primary-btn">
                                <i class="fas fa-gift"></i>
                                <span>满足愿望</span>
                            </button>
                            <button class="main-action-btn secondary-btn">
                                <i class="fas fa-comment"></i>
                                <span>留言建议</span>
                            </button>
                            <button class="icon-action-btn like-btn" title="点赞">
                                <i class="far fa-heart"></i>
                            </button>
                            <button class="icon-action-btn save-btn" title="收藏">
                                <i class="far fa-bookmark"></i>
                            </button>
                            <button class="icon-action-btn share-btn" title="分享">
                                <i class="far fa-share-alt"></i>
                            </button>
                        </div>
                    </div>
                    
                    <!-- 作者信息 -->
                    <div class="author-info">
                        <img src="https://picsum.photos/200/200?random=10" alt="林小雨的头像" class="author-avatar">
                        <div class="author-details">
                            <a href="#" class="author-name">林小雨</a>
                            <div class="post-time">发布于 3天前 · 来自 生日礼物愿望</div>
                        </div>
                        <button class="follow-btn">
                            <i class="fas fa-plus"></i> 关注
                        </button>
                    </div>
                </div>
                
                <!-- 评论区 -->
                <div class="comments-section">
                    <div class="comments-header">
                        <h3 class="section-title"><i class="fas fa-comments"></i> 留言与回复</h3>
                        <div class="comments-count">32 条留言</div>
                        <div class="comments-sort">
                            排序: <select id="commentsSort">
                                <option value="newest">最新</option>
                                <option value="popular">最热</option>
                            </select>
                        </div>
                    </div>
                    
                    <!-- 评论输入框 -->
                    <div class="comment-input-container">
                        <img src="https://picsum.photos/200/200?random=99" alt="当前用户头像" class="user-avatar">
                        <div class="comment-input">
                            <textarea placeholder="写下你的留言或建议..."></textarea>
                            <div class="comment-actions">
                                <button class="cancel-btn">取消</button>
                                <button class="post-btn">发布留言</button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 评论列表 -->
                    <div class="comments-list">
                        <!-- 评论1 -->
                        <div class="comment-item">
                            <img src="https://picsum.photos/200/200?random=20" alt="张明的头像" class="comment-author-avatar">
                            <div class="comment-content">
                                <div class="comment-header">
                                    <div class="comment-author">张明</div>
                                    <div class="comment-time">2天前</div>
                                </div>
                                <div class="comment-text">
                                    我有一台富士的复古胶片相机，型号是X-T200，用了不到半年，几乎全新，如果你有兴趣的话可以联系我，价格可以商量。
                                </div>
                                <div class="comment-actions">
                                    <div class="comment-action like-btn">
                                        <i class="far fa-heart"></i>
                                        <span>24</span>
                                    </div>
                                    <div class="comment-action reply-btn">
                                        <i class="far fa-reply"></i>
                                        <span>回复</span>
                                    </div>
                                </div>
                                
                                <!-- 回复区域 -->
                                <div class="replies-container">
                                    <!-- 回复1 -->
                                    <div class="reply-item">
                                        <img src="https://picsum.photos/200/200?random=10" alt="林小雨的头像" class="reply-author-avatar">
                                        <div class="reply-content">
                                            <div class="reply-header">
                                                <div class="reply-author">林小雨 <span class="text-muted">(作者)</span></div>
                                                <div class="reply-time">1天前</div>
                                            </div>
                                            <div class="reply-text">
                                                <span class="reply-to">@张明</span> 谢谢！我对富士的相机很感兴趣，已经私信你了，麻烦通过一下~
                                            </div>
                                            <div class="reply-actions">
                                                <div class="reply-action like-btn">
                                                    <i class="far fa-heart"></i>
                                                    <span>8</span>
                                                </div>
                                                <div class="reply-action reply-btn">
                                                    <i class="far fa-reply"></i>
                                                    <span>回复</span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    
                                    <!-- 回复输入框 -->
                                    <div class="reply-input-container" style="display: none;">
                                        <img src="https://picsum.photos/200/200?random=99" alt="当前用户头像" class="user-avatar">
                                        <div class="reply-input">
                                            <textarea placeholder="回复 @张明..."></textarea>
                                            <div class="reply-actions">
                                                <button class="cancel-btn">取消</button>
                                                <button class="post-btn">回复</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 评论2 -->
                        <div class="comment-item">
                            <img src="https://picsum.photos/200/200?random=21" alt="李华的头像" class="comment-author-avatar">
                            <div class="comment-content">
                                <div class="comment-header">
                                    <div class="comment-author">李华</div>
                                    <div class="comment-time">3天前</div>
                                </div>
                                <div class="comment-text">
                                    奥林巴斯的OM-1系列非常经典，体积小巧，成像质量也很好，很适合日常携带。不过要注意挑选靠谱的卖家，避免买到翻新或故障机。建议先在网上多了解一下相关型号的评测和使用体验。
                                </div>
                                <div class="comment-actions">
                                    <div class="comment-action like-btn liked">
                                        <i class="fas fa-heart"></i>
                                        <span>42</span>
                                    </div>
                                    <div class="comment-action reply-btn">
                                        <i class="far fa-reply"></i>
                                        <span>回复</span>
                                    </div>
                                </div>
                                
                                <!-- 回复区域 -->
                                <div class="replies-container">
                                    <!-- 回复1 -->
                                    <div class="reply-item">
                                        <img src="https://picsum.photos/200/200?random=22" alt="王强的头像" class="reply-author-avatar">
                                        <div class="reply-content">
                                            <div class="reply-header">
                                                <div class="reply-author">王强</div>
                                                <div class="reply-time">2天前</div>
                                            </div>
                                            <div class="reply-text">
                                                <span class="reply-to">@李华</span> 同意，我有一台OM-1，用了五年了依然很可靠，推荐搭配一个50mm f/1.8的镜头，拍人像效果非常好。
                                            </div>
                                            <div class="reply-actions">
                                                <div class="reply-action like-btn">
                                                    <i class="far fa-heart"></i>
                                                    <span>15</span>
                                                </div>
                                                <div class="reply-action reply-btn">
                                                    <i class="far fa-reply"></i>
                                                    <span>回复</span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 评论3 -->
                        <div class="comment-item">
                            <img src="https://picsum.photos/200/200?random=23" alt="陈静的头像" class="comment-author-avatar">
                            <div class="comment-content">
                                <div class="comment-header">
                                    <div class="comment-author">陈静</div>
                                    <div class="comment-time">3天前</div>
                                </div>
                                <div class="comment-text">
                                    我也是胶片摄影爱好者！推荐你关注一些摄影器材租赁平台，有时候可以租到不错的机型试用，确定自己喜欢哪款再购买，避免浪费钱。另外，胶片和冲洗费用也要考虑进去哦，长期使用也是一笔不小的开销。
                                </div>
                                <div class="comment-actions">
                                    <div class="comment-action like-btn">
                                        <i class="far fa-heart"></i>
                                        <span>18</span>
                                    </div>
                                    <div class="comment-action reply-btn">
                                        <i class="far fa-reply"></i>
                                        <span>回复</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 加载更多评论 -->
                    <div class="text-center">
                        <button class="btn btn-outline-secondary btn-sm">
                            <i class="fas fa-spinner fa-spin me-1" style="display: none;"></i>
                            加载更多评论
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 右侧边栏 -->
            <div class="col-lg-4">
                <!-- 相关推荐 -->
                <div class="mb-5">
                    <h3 class="section-title"><i class="fas fa-thumbs-up"></i> 你可能也喜欢</h3>
                    <div class="related-gifts">
                        <a href="#" class="text-decoration-none text-dark">
                            <div class="related-gift-card">
                                <img src="https://picsum.photos/400/300?random=10" alt="复古镜头" class="related-gift-img">
                                <div class="related-gift-info">
                                    <div class="related-gift-title">复古相机镜头套装，适合收藏和实用</div>
                                    <div class="related-gift-price">¥1200 - ¥2500</div>
                                </div>
                            </div>
                        </a>
                        
                        <a href="#" class="text-decoration-none text-dark">
                            <div class="related-gift-card">
                                <img src="https://picsum.photos/400/300?random=11" alt="胶片套装" class="related-gift-img">
                                <div class="related-gift-info">
                                    <div class="related-gift-title">专业彩色胶片套装，10卷装</div>
                                    <div class="related-gift-price">¥350 - ¥500</div>
                                </div>
                            </div>
                        </a>
                        
                        <a href="#" class="text-decoration-none text-dark">
                            <div class="related-gift-card">
                                <img src="https://picsum.photos/400/300?random=12" alt="相机包" class="related-gift-img">
                                <div class="related-gift-info">
                                    <div class="related-gift-title">复古相机包，保护你的珍贵器材</div>
                                    <div class="related-gift-price">¥450 - ¥800</div>
                                </div>
                            </div>
                        </a>
                        
                        <a href="#" class="text-decoration-none text-dark">
                            <div class="related-gift-card">
                                <img src="https://picsum.photos/400/300?random=13" alt="照片打印机" class="related-gift-img">
                                <div class="related-gift-info">
                                    <div class="related-gift-title">便携式照片打印机，即时打印美好回忆</div>
                                    <div class="related-gift-price">¥800 - ¥1500</div>
                                </div>
                            </div>
                        </a>
                    </div>
                </div>
                
                <!-- 同类愿望 -->
                <div>
                    <h3 class="section-title"><i class="fas fa-layer-group"></i> 同类愿望</h3>
                    <div class="related-gifts">
                        <a href="#" class="text-decoration-none text-dark">
                            <div class="related-gift-card">
                                <img src="https://picsum.photos/400/300?random=20" alt="拍立得相机" class="related-gift-img">
                                <div class="related-gift-info">
                                    <div class="related-gift-title">富士拍立得相机，即时获得实体照片</div>
                                    <div class="related-gift-price">¥500 - ¥1200</div>
                                </div>
                            </div>
                        </a>
                        
                        <a href="#" class="text-decoration-none text-dark">
                            <div class="related-gift-card">
                                <img src="https://picsum.photos/400/300?random=21" alt="摄影课程" class="related-gift-img">
                                <div class="related-gift-info">
                                    <div class="related-gift-title">专业胶片摄影课程，提升拍摄技巧</div>
                                    <div class="related-gift-price">¥800 - ¥2000</div>
                                </div>
                            </div>
                        </a>
                        
                        <a href="#" class="text-decoration-none text-dark">
                            <div class="related-gift-card">
                                <img src="https://picsum.photos/400/300?random=22" alt="复古相册" class="related-gift-img">
                                <div class="related-gift-info">
                                    <div class="related-gift-title">手工复古相册，珍藏美好回忆</div>
                                    <div class="related-gift-price">¥200 - ¥500</div>
                                </div>
                            </div>
                        </a>
                        
                        <a href="#" class="text-decoration-none text-dark">
                            <div class="related-gift-card">
                                <img src="https://picsum.photos/400/300?random=23" alt="暗房套装" class="related-gift-img">
                                <div class="related-gift-info">
                                    <div class="related-gift-title">家庭暗房套装，自己动手冲洗照片</div>
                                    <div class="related-gift-price">¥1500 - ¥3000</div>
                                </div>
                            </div>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 页脚 -->
    <footer>
        <div class="container">
            <div class="footer-content">
                <div class="social-links">
                    <a href="#" class="social-link"><i class="fab fa-weibo"></i></a>
                    <a href="#" class="social-link"><i class="fab fa-wechat"></i></a>
                    <a href="#" class="social-link"><i class="fab fa-instagram"></i></a>
                    <a href="#" class="social-link"><i class="fab fa-twitter"></i></a>
                </div>
                
                <div class="footer-links">
                    <a href="#" class="footer-link">关于我们</a>
                    <a href="#" class="footer-link">使用条款</a>
                    <a href="#" class="footer-link">隐私政策</a>
                    <a href="#" class="footer-link">帮助中心</a>
                    <a href="#" class="footer-link">联系我们</a>
                </div>
                
                <div class="copyright">
                    &copy; 2023 心愿社交 - 分享愿望，传递心意
                </div>
            </div>
        </div>
    </footer>
    

    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 图片切换功能
        const thumbnails = document.querySelectorAll('.thumbnail');
        const mainImage = document.getElementById('mainImage');
        
        thumbnails.forEach(thumbnail => {
            thumbnail.addEventListener('click', function() {
                // 更新主图
                mainImage.src = this.getAttribute('data-img');
                
                // 更新缩略图活跃状态
                thumbnails.forEach(thumb => thumb.classList.remove('active'));
                this.classList.add('active');
            });
        });
        
        // 点赞功能
        document.querySelectorAll('.like-btn').forEach(button => {
            button.addEventListener('click', function() {
                const icon = this.querySelector('i');
                const countElem = this.querySelector('span');
                
                if (icon.classList.contains('far')) {
                    // 点赞
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    this.classList.add('liked');
                    
                    // 更新计数
                    if (countElem) {
                        countElem.textContent = (parseInt(countElem.textContent) + 1).toString();
                    }
                    
                    showNotification('点赞成功');
                } else {
                    // 取消点赞
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    this.classList.remove('liked');
                    
                    // 更新计数
                    if (countElem) {
                        countElem.textContent = (parseInt(countElem.textContent) - 1).toString();
                    }
                    
                    showNotification('取消点赞');
                }
            });
        });
        
        // 收藏功能
        document.querySelectorAll('.save-btn').forEach(button => {
            button.addEventListener('click', function() {
                const icon = this.querySelector('i');
                
                if (icon.classList.contains('far')) {
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    this.classList.add('saved');
                    showNotification('收藏成功');
                } else {
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    this.classList.remove('saved');
                    showNotification('取消收藏');
                }
            });
        });
        
        // 分享功能
        document.querySelectorAll('.share-btn').forEach(button => {
            button.addEventListener('click', function() {
                showNotification('分享链接已复制到剪贴板');
            });
        });
        
        // 关注功能
        const followBtn = document.querySelector('.follow-btn');
        
        followBtn.addEventListener('click', function() {
            if (this.classList.contains('following')) {
                this.classList.remove('following');
                this.innerHTML = '<i class="fas fa-plus"></i> 关注';
                showNotification('已取消关注');
            } else {
                this.classList.add('following');
                this.innerHTML = '<i class="fas fa-check"></i> 已关注';
                showNotification('关注成功');
            }
        });
        
        // 回复功能
        document.querySelectorAll('.reply-btn').forEach(button => {
            button.addEventListener('click', function() {
                // 找到最近的回复输入框
                const commentItem = this.closest('.comment-item, .reply-item');
                let replyInputContainer = commentItem.querySelector('.reply-input-container');
                
                // 如果没有则创建一个
                if (!replyInputContainer) {
                    const repliesContainer = commentItem.querySelector('.replies-container') || 
                                           document.createElement('div');
                    
                    if (!commentItem.querySelector('.replies-container')) {
                        repliesContainer.className = 'replies-container';
                        if (commentItem.classList.contains('comment-item')) {
                            commentItem.querySelector('.comment-content').appendChild(repliesContainer);
                        } else {
                            commentItem.querySelector('.reply-content').appendChild(repliesContainer);
                        }
                    }
                    
                    // 创建回复输入框
                    const replyTo = commentItem.querySelector('.comment-author, .reply-author').textContent;
                    replyInputContainer = document.createElement('div');
                    replyInputContainer.className = 'reply-input-container';
                    replyInputContainer.innerHTML = `
                        <img src="https://picsum.photos/200/200?random=99" alt="当前用户头像" class="user-avatar">
                        <div class="reply-input">
                            <textarea placeholder="回复 @${replyTo}..."></textarea>
                            <div class="reply-actions">
                                <button class="cancel-btn">取消</button>
                                <button class="post-btn">回复</button>
                            </div>
                        </div>
                    `;
                    
                    repliesContainer.appendChild(replyInputContainer);
                    
                    // 绑定取消按钮事件
                    replyInputContainer.querySelector('.cancel-btn').addEventListener('click', function() {
                        replyInputContainer.style.display = 'none';
                    });
                    
                    // 绑定发布按钮事件
                    replyInputContainer.querySelector('.post-btn').addEventListener('click', function() {
                        const textarea = replyInputContainer.querySelector('textarea');
                        const content = textarea.value.trim();
                        
                        if (content) {
                            // 创建新回复
                            const newReply = document.createElement('div');
                            newReply.className = 'reply-item';
                            newReply.innerHTML = `
                                <img src="https://picsum.photos/200/200?random=99" alt="当前用户头像" class="reply-author-avatar">
                                <div class="reply-content">
                                    <div class="reply-header">
                                        <div class="reply-author">我</div>
                                        <div class="reply-time">刚刚</div>
                                    </div>
                                    <div class="reply-text">
                                        <span class="reply-to">@${replyTo}</span> ${content}
                                    </div>
                                    <div class="reply-actions">
                                        <div class="reply-action like-btn">
                                            <i class="far fa-heart"></i>
                                            <span>0</span>
                                        </div>
                                        <div class="reply-action reply-btn">
                                            <i class="far fa-reply"></i>
                                            <span>回复</span>
                                        </div>
                                    </div>
                                </div>
                            `;
                            
                            // 添加新回复
                            repliesContainer.insertBefore(newReply, replyInputContainer);
                            
                            // 清空输入框
                            textarea.value = '';
                            
                            // 隐藏输入框
                            replyInputContainer.style.display = 'none';
                            
                            // 绑定新回复的事件
                            newReply.querySelector('.like-btn').addEventListener('click', function() {
                                const icon = this.querySelector('i');
                                const countElem = this.querySelector('span');
                                
                                if (icon.classList.contains('far')) {
                                    icon.classList.remove('far');
                                    icon.classList.add('fas');
                                    this.classList.add('liked');
                                    countElem.textContent = '1';
                                    showNotification('点赞成功');
                                } else {
                                    icon.classList.remove('fas');
                                    icon.classList.add('far');
                                    this.classList.remove('liked');
                                    countElem.textContent = '0';
                                    showNotification('取消点赞');
                                }
                            });
                            
                            newReply.querySelector('.reply-btn').addEventListener('click', function() {
                                // 显示回复输入框
                                replyInputContainer.style.display = 'flex';
                                replyInputContainer.querySelector('textarea').focus();
                            });
                            
                            showNotification('回复成功');
                        } else {
                            showNotification('回复内容不能为空', 'error');
                        }
                    });
                }
                
                // 显示回复输入框并聚焦
                replyInputContainer.style.display = 'flex';
                replyInputContainer.querySelector('textarea').focus();
            });
        });
        
        // 评论发布功能
        const commentTextarea = document.querySelector('.comment-input-container textarea');
        const postCommentBtn = document.querySelector('.comment-input-container .post-btn');
        const cancelCommentBtn = document.querySelector('.comment-input-container .cancel-btn');
        
        // 禁用/启用发布按钮
        commentTextarea.addEventListener('input', function() {
            postCommentBtn.disabled = this.value.trim() === '';
        });
        
        // 取消评论
        cancelCommentBtn.addEventListener('click', function() {
            commentTextarea.value = '';
            postCommentBtn.disabled = true;
        });
        
        // 发布评论
        postCommentBtn.addEventListener('click', function() {
            const content = commentTextarea.value.trim();
            
            if (content) {
                const commentsList = document.querySelector('.comments-list');
                
                // 创建新评论
                const newComment = document.createElement('div');
                newComment.className = 'comment-item';
                newComment.innerHTML = `
                    <img src="https://picsum.photos/200/200?random=99" alt="当前用户头像" class="comment-author-avatar">
                    <div class="comment-content">
                        <div class="comment-header">
                            <div class="comment-author">我</div>
                            <div class="comment-time">刚刚</div>
                        </div>
                        <div class="comment-text">
                            ${content}
                        </div>
                        <div class="comment-actions">
                            <div class="comment-action like-btn">
                                <i class="far fa-heart"></i>
                                <span>0</span>
                            </div>
                            <div class="comment-action reply-btn">
                                <i class="far fa-reply"></i>
                                <span>回复</span>
                            </div>
                        </div>
                    </div>
                `;
                
                // 添加到评论列表顶部
                commentsList.insertBefore(newComment, commentsList.firstChild);
                
                // 清空输入框
                commentTextarea.value = '';
                postCommentBtn.disabled = true;
                
                // 更新评论计数
                const commentsCount = document.querySelector('.comments-count');
                const count = parseInt(commentsCount.textContent);
                commentsCount.textContent = `${count + 1} 条留言`;
                
                // 绑定新评论的事件
                newComment.querySelector('.like-btn').addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const countElem = this.querySelector('span');
                    
                    if (icon.classList.contains('far')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('liked');
                        countElem.textContent = '1';
                        showNotification('点赞成功');
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('liked');
                        countElem.textContent = '0';
                        showNotification('取消点赞');
                    }
                });
                
                newComment.querySelector('.reply-btn').addEventListener('click', function() {
                    // 创建回复输入框
                    const repliesContainer = document.createElement('div');
                    repliesContainer.className = 'replies-container';
                    
                    const replyInputContainer = document.createElement('div');
                    replyInputContainer.className = 'reply-input-container';
                    replyInputContainer.innerHTML = `
                        <img src="https://picsum.photos/200/200?random=99" alt="当前用户头像" class="user-avatar">
                        <div class="reply-input">
                            <textarea placeholder="写下你的回复..."></textarea>
                            <div class="reply-actions">
                                <button class="cancel-btn">取消</button>
                                <button class="post-btn">回复</button>
                            </div>
                        </div>
                    `;
                    
                    repliesContainer.appendChild(replyInputContainer);
                    newComment.querySelector('.comment-content').appendChild(repliesContainer);
                    
                    // 显示回复输入框并聚焦
                    replyInputContainer.style.display = 'flex';
                    replyInputContainer.querySelector('textarea').focus();
                    
                    // 绑定取消按钮事件
                    replyInputContainer.querySelector('.cancel-btn').addEventListener('click', function() {
                        replyInputContainer.style.display = 'none';
                    });
                    
                    // 绑定发布按钮事件
                    replyInputContainer.querySelector('.post-btn').addEventListener('click', function() {
                        const textarea = replyInputContainer.querySelector('textarea');
                        const replyContent = textarea.value.trim();
                        
                        if (replyContent) {
                            // 创建新回复
                            const newReply = document.createElement('div');
                            newReply.className = 'reply-item';
                            newReply.innerHTML = `
                                <img src="https://picsum.photos/200/200?random=99" alt="当前用户头像" class="reply-author-avatar">
                                <div class="reply-content">
                                    <div class="reply-header">
                                        <div class="reply-author">我</div>
                                        <div class="reply-time">刚刚</div>
                                    </div>
                                    <div class="reply-text">
                                        ${replyContent}
                                    </div>
                                    <div class="reply-actions">
                                        <div class="reply-action like-btn">
                                            <i class="far fa-heart"></i>
                                            <span>0</span>
                                        </div>
                                        <div class="reply-action reply-btn">
                                            <i class="far fa-reply"></i>
                                            <span>回复</span>
                                        </div>
                                    </div>
                                </div>
                            `;
                            
                            // 添加新回复
                            repliesContainer.insertBefore(newReply, replyInputContainer);
                            
                            // 清空输入框
                            textarea.value = '';
                            
                            // 隐藏输入框
                            replyInputContainer.style.display = 'none';
                            
                            showNotification('回复成功');
                        } else {
                            showNotification('回复内容不能为空', 'error');
                        }
                    });
                });
                
                showNotification('评论发布成功');
            }
        });
        
        // 加载更多评论
        document.querySelector('.btn-outline-secondary').addEventListener('click', function() {
            const spinner = this.querySelector('i');
            
            // 显示加载状态
            spinner.style.display = 'inline-block';
            this.disabled = true;
            
            // 模拟加载延迟
            setTimeout(() => {
                // 恢复按钮状态
                spinner.style.display = 'none';
                this.disabled = false;
                showNotification('已加载全部评论');
            }, 1500);
        });
        
        // 评论排序
        document.getElementById('commentsSort').addEventListener('change', function() {
            const sortType = this.value;
            const sortText = this.options[this.selectedIndex].text;
            showNotification(`评论已按${sortText}排序`);
        });
        
        // 满足愿望按钮
        document.querySelector('.primary-btn').addEventListener('click', function() {
            showNotification('已发起满足愿望请求，等待对方回复');
        });
        
        // 留言建议按钮
        document.querySelector('.secondary-btn').addEventListener('click', function() {
            document.querySelector('.comment-input-container textarea').focus();
        });
        

    </script>
</body>
</html>
    
